<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
onLaunch(() => {
	// #ifdef APP
	plus.cache.clear();//清除缓存
			console.log('清除缓存成功')
			setTimeout((res) => {
				plus.screen.lockOrientation('landscape-primary'); // 锁定横屏
				// plus.navigator.setFullscreen(true); // 隐藏状态栏
			}, 1000)
	// #endif
   
});
onShow(() => {
    console.log('App Show');
});
onHide(() => {
    console.log('App Hide');
});
</script>
